home *** CD-ROM | disk | FTP | other *** search
- Path: Norway.EU.net!usenet
- From: patrick.hanevold@login.eunet.no (Patrick Hanevold)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Ceck out this bug. What the *** is SASC/6.56 doing?
- Date: 11 Mar 1996 06:03:46 GMT
- Organization: EUnet Norway
- Message-ID: <874.6644T381T2315@login.eunet.no>
- References: <1120.6643T91T406@login.eunet.no> <4hvk1f$o0c@zeus.central.ntua.gr>
- NNTP-Posting-Host: pc6.asker-pm2-1.eunet.no
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- >>#define ScreenWidth 160
- >>#define ScreenHeight 128
- >>void main(void)
- >>{
- >> int x,y,n;
- >> UBYTE Buffer[ScreenWidth];
- >> ULONG Palette[256*3+2]; // This one causes the bug.
- >> struct Screen *Scr=OpenScreenTags(NULL,
- >> SA_Width, 320,
- >> SA_Height, 256,
- >> SA_Depth, 8,
- >> TAG_END);
-
- >Hmm, that Palette array holds 3080 bytes on the stack.
- >My guess is that you screw up your stack. Try making the stack bigger or
- >declare the array as global, out of the main function.
-
- Tryed "Stack check" and all that. No difference.
- Anyway, the default stack is 4K isnt it?
- Cant think of anything using that additional 1K.
- Dont want it global. Allocate it myself now.
-
- <sb>Patrick Hanevold - Virtual Reality developer
- <sb>patrick.hanevold@login.eunet.no
- <sb>Amiga and official Be developer
-
-